package com.ehome.poct.core.dao.mybatis;

import com.ehome.mybatisplus.support.AbstractCrudRepository;
import com.ehome.poct.core.api.dto.check.CheckProjectDTO;
import com.ehome.poct.core.dao.entity.check.CheckProjectDO;
import com.ehome.poct.core.repository.CheckProjectRepository;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

/**
 * 检测项目信息RepositoryImpl
 *
 * @author muqiu
 * @Date 2022-03-19 15:47
 */
@Repository
public class CheckProjectRepositoryImpl extends AbstractCrudRepository<CheckProjectDO, CheckProjectDTO> implements CheckProjectRepository {
    @Override
    //@Cacheable(value = "check:blood:project")
    public CheckProjectDTO selectByCode(Integer code) {
        return this.selectOne(new CheckProjectDTO().setCheckProjectCode(code));
    }
}
